<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page import="com.tjtt.tdm.base.PubMethod" %>
<%@ page language="java" import="com.tjtt.common.utils.DateUtilsAll"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">   
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">  
  <head>
  <base target="_self"/>
  
  <title>选择审核人员</title>
  	<%@ include file="../jslib/jquerylib.jsp" %> 
	<link rel="stylesheet" type="text/css" href="<%=path %>/web/style/layout.css" />
    <script type="text/javascript" src="<%=path %>/jslib/jquery.validate.min.js"></script>
    <script type='text/javascript' src="<%=request.getContextPath() %>/jslib/My97DatePicker/WdatePicker.js"  defer="defer"></script>
    <script type='text/javascript' src="<%=request.getContextPath() %>/jslib/jquery.form.js"></script>
    <script type="text/javascript" src="<%=request.getContextPath() %>/jslib/additional-methods.js"></script>
    <link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/jslib/jquery-easyui-1.4.1/themes/default/easyui.css" />
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/jslib/jquery-easyui-1.4.1/themes/icon.css" />
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/jslib/jquery-easyui-1.4.1/demo.css" />
	<script type="text/javascript" src="<%=request.getContextPath() %>/jslib/jquery-easyui-1.4.1/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="<%=request.getContextPath() %>/jslib/lhgdialog/lhgcore.lhgdialog.min.js?skin=mac"></script>

    <style type="text/css">
		body{
			background:#ffffff; background-image:url(images/);
		}
	</style>
    <script type="text/javascript">
    var api = frameElement.api, W = api.opener;
    var stateValue="";
    var jiancerenids = "";
    $().ready(function(){
    	if("0"==${view}){
	        	for (i = 0;i < document.all.length; i++)
				{
					if (document.all[i].type == 'button' || document.all[i].type == 'submit' || document.all[i].type == 'reset')
					{
						document.all[i].style.display = "none";
					}
				}	
				document.getElementById("closeBtn").style.display="block";
	        }
    	
		//样品-检测项目列表
		$("#gridTable").jqGrid({
			url:common_basePath+'/autoForms/item!queryItemSampleByTaskId.action?type=0&taskId=${flowtaskid}&stateId=${stateid}&flowtaskinfoid=${taskinfoid}&temp='+Math.round(Math.random()*10000),
			datatype: "json",
			height: 150,
			width: 720, 
			colNames:['主键','检测类别','检测项目','检测标准','样品编号','检测人员','原始记录路径','报告路径','报告要求','样品附件','检测项目附件','样品附件ID','项目附件ID'],
			colModel:[
					{name:'ID',index:'ID', width:70,key:true,hidden:true}, 
					{name:'T_JIACELEIBIE',index:'T_JIACELEIBIE', width:100}, 
					{name:'T_ITEMNAME',index:'T_ITEMNAME', width:150}, 
					{name:'T_JIANCEBIAOZHUN',index:'T_JIANCEBIAOZHUN', width:200}, 
					{name:'T_SAMPLENO',index:'T_SAMPLENO', width:140}, 
					{name:'T_JIANCEYUANNAME',index:'T_JIANCEYUANNAME', width:100}, 
					{name:'T_YSJLFILEPATH',index:'T_YSJLFILEPATH', width:140,hidden:true}, 
					{name:'T_BGFILEPATH',index:'T_BGFILEPATH', width:140,hidden:true}, 
					{name:'T_BAOGAOTYPE',index:'T_BAOGAOTYPE', width:140}, 
   						{name:'SAMPLE_FILE_NAME',index:'SAMPLE_FILE_NAME', width:180,hidden:true,hidedlg:false,formatter: function(cellvalue, options, rowObject) {        return "<a href='javascript:downloafAnnex(0,"+rowObject.ST_ANNEX+")'>"+rowObject.SAMPLE_FILE_NAME+"</a>" }},     
   						{name:'ITEM_FILE_NAME',index:'ITEM_FILE_NAME', width:180,hidden:true,hidedlg:false,formatter: function(cellvalue, options, rowObject) {        return "<a href='javascript:downloafAnnex(0,"+rowObject.IT_ANNEX+")'>"+rowObject.ITEM_FILE_NAME+"</a>"}},		{name:'ST_ANNEX',index:'ST_ANNEX', width:140,hidden:true}, 
					{name:'IT_ANNEX',index:'IT_ANNEX', width:140,hidden:true}
			],
			shrinkToFit:false,
			sortname:'T_SAMPLENO',
			sortorder:'asc',
			viewrecords:true,
			multiselect: true, // 是否显示复选框
			multiboxonly : true, 
			rownumbers: false,//显示行号
		    cellEdit: false,
			forceFit : true, 
			rowNum:200,
			mtype: "POST", 
			rowList:[15,20,50,200,500],
			toolbar: [false,"top"],
			jsonReader: {
				root:"rows",		// 数据行（默认为：rows）
				page: "page",  	// 当前页
				total: "total",  // 总页数
				records: "records",  // 总记录数
				repeatitems : false		// 设置成false，在后台设置值的时候，可以乱序。且并非每个值都得设
			},
			prmNames:{rows:"rows",page:"page",sort:"sidx",order:"sord",search:"search"},
			pager:"#gridPager",
			caption: "样品/检测项目列表"
		});	    
		      
        //提交  
		var options1 = {
	  	    url:'<%=request.getContextPath() %>/weituodan!chuliWeituodan.action?jiancerenids='+jiancerenids,
	  	     beforeSubmit: function() {
	   				return checking();
	    			},
	  	    dataType:'json',
	  	    success: function(data) {
	  	    //alert(data);
	  	      if(data.result=='success'){
				alert("提交成功");
			//	window.close();
				api.close();
				W.reload();
	  	      }
	  	    }};
    	//提交
		$('#submitBtn').click(function(){
			//判断是否分配了试验员
			if('<%=request.getAttribute("stateid").toString()%>'=='proc1' &&  $("input[name='steptype']:checked").val()=="step5"){
	    		 if(!checkShiyanyuanEmpty()){
    			     alert("请给所以检测项目分配试验员!");
    			     return false;
    			   }
	    	}
	    	//退回填写退回意见和审批意见
	      var editbackoption = false;
	      if($('input[name="steptype"]:checked').val()=="step25"){ 
		     editbackoption = true;
		  }
		  if(editbackoption){
		        var datas = window.showModalDialog("<%=request.getContextPath() %>/workflow/viewBackOption.jsp", window, "dialogWidth:660px;status:no;dialogHeight:400px");
		    	if(typeof(datas) == 'undefined'){    
		    	   return false; 
				}else{
				      var json = eval('(' + datas + ')');
					  $("#backoption").val(json.remarks);
					  $("#spyj").val(json.remarks);
				}
		  }else{
			    //填写审批意见
			    var datas = window.showModalDialog("<%=request.getContextPath() %>/workflow/shenpiOption.jsp", window, "dialogWidth:660px;status:no;dialogHeight:400px");
		    	if(typeof(datas) == 'undefined'){  
		    	   return false;   
				}else{
				      var json = eval('(' + datas + ')');
					  $("#spyj").val(json.remarks);
				}
				
		  }
			if(!confirm("是否确认提交 ？")){
		   			return false;
				}
	    	$('#pageFrom').ajaxSubmit(options1);
	            return false;
    	 });
    	$('#closeBtn').click(function(){
    		api.close();
			W.reload();
		});
		
		
	});
	
   	function checking(){
   		var flag = true;
		var flowname = $.trim($("#flowname").val());
		var jiancedanwei = $("#jiancedanwei").val();
		var jiancedidian = $("#jiancedidian").val();
		var shenqingdanwei = $("#shenqingdanwei").val();
		var dizhi = $("#dizhi").val();
		var jiancemudi = $("#jiancemudi").val();
		var shuangfangyuedingdate = $("#shuangfangyuedingdate").val();
		if(flowname ==null || flowname == "" ){
			alert("任务名称不能为空！");
			$("#flowname").focus();
    		return false;
		}
		if(jiancedanwei ==null || jiancedanwei == "" ){
			alert("检测单位不能为空！");
			$("#jiancedanwei").focus();
    		return false;
		}
		if(jiancedidian ==null || jiancedidian == "" ){
			alert("检测地点不能为空！");
			$("#jiancedidian").focus();
    		return false;
		}
		if(shenqingdanwei ==null || shenqingdanwei == "" ){
			alert("申请单位不能为空！");
			$("#shenqingdanwei").focus();
    		return false;
		}
		if(dizhi ==null || dizhi == "" ){
			alert("地址不能为空！");
			$("#dizhi").focus();
    		return false;
		}
		if(jiancemudi ==null || jiancemudi == "" ){
			alert("检测目的不能为空！");
			$("#jiancemudi").focus();
    		return false;
		}
		if("proc1"=="<%=request.getAttribute("stateid").toString()%>" &&  $("input[name='steptype']:checked").val()=="step5"){
			if(shuangfangyuedingdate ==null || shuangfangyuedingdate == "" ){
				alert("双方约定日期不能为空！");
				$("#shuangfangyuedingdate").focus();
	    		return false;
			}
		}
		
	}
	 
	function checkExp(inputData){ 
		var regEx = new RegExp(/^(([^\^\.<>%&',:;=?$"'#@!~\]\[{}【】￥（）！·‘’”“。，、？：；—|\/\\/`\|])*)$/);
		var result = inputData.match(regEx);
		if (result == null) {
			return false;
		}
		return true;
	}
	function checkNum(inputData){
		var sNumber;
	    sNumber=Number(inputData);
	    if (isNaN(inputData)){
	       return false;
	     }
	    return true;
	}
	function countlen1(textarea){
	       var elem = event.relatedTarget || event.srcElement || event.target ||event.currentTarget;    
	        if(event.keyCode!=8)
			{
			  if (textarea.value.length> 249){
			        alert("最多为250个字符,字符输入超出限制!");
			        textarea.value=textarea.value.substring(0,249);
			    }
			    return true;
	 	    }
	}
		
	  //选择部门
	function selectdept(id)
	{
		var datas = window.showModalDialog("<%=request.getContextPath() %>/resource/choose/choose_organizationIndex.jsp?temp="+Math.round(Math.random()*10000),'',"dialogWidth=900px;dialogHeight=550px");
		if(typeof(datas) == 'undefined'){
		}else{
			var json1 = eval('(' + datas + ')');
			 document.getElementById("dept_"+id).value = json1.ORG_NAME;
			 document.getElementById(id).value = json1.ORG_ID;
		}
	}
	
	//选择人员
	function selectperson(id)
	{
		 var users = window.showModalDialog("<%=request.getContextPath() %>/resource/choose/chooseAllUser.jsp", window, "dialogWidth:900px;status:no;dialogHeight:500px");
    	if (users != null) {
    		var userIds = [];
            var userNames = [];
            for(var i=0;i<users.length;i++){
                userIds.push(users[i]['userid']);
                userNames.push(users[i]['username']);
            }
			    $("#"+id).val(userNames.join());
		        $("#"+id+"id").val(userIds.join());
		   }
	}
	function changevalue(id){
	 	
	 	var flag = "0";
	 	if(id == 1){
	 		var fileValue = document.getElementById("file1").value;
	 		var a=fileValue.lastIndexOf("\\");
	 		var filename = fileValue.substring(a+1);
			document.getElementById("gongyingshangzizhi").value=filename;
			flag = "1";
		}else if(id == 2){
		    var fileValue = document.getElementById("file2").value;
	 		var a=fileValue.lastIndexOf("\\");
	 		var filename = fileValue.substring(a+1);
			document.getElementById("gongyingshangpingjia").value=filename;
			flag = "2";
		}
		document.getElementById("flag").value=flag;
	}
	//选择外键数据信息
	//参数信息：表明，关联列，显示列
	function selectData(id,tablename,colname,disname,cnname,fieldslist){
	    var fileColname ='hideFileName';
	    if(tablename=='DIC_STANDARD'){
	      fileColname = "YCLJS_GYYW";
	    }
		var datas = window.showModalDialog("<%=basePath%>/codeReviewActionNew!chooseDatalist.action?tablename="+tablename+"&colname="+colname+"&disname="+disname+"&cnname="+escape(encodeURIComponent(cnname))+"&fileColname="+fileColname+"&temp="+Math.round(Math.random()*10000),'',"dialogWidth=1000px;dialogHeight=400px");
		if(typeof(datas) == 'undefined'){
		}else{
			 var json1 = eval('(' + datas + ')');
	//		 document.getElementById(id).value = json1.ID;
			 var disnamearray = disname.split(',');
			 if(id == "jiancedanwei"){
			 	document.getElementById(id).value = json1[disnamearray[0]]+' ' +json1[disnamearray[1]];
			 	document.getElementById("dizhi").value = json1[disnamearray[2]];
			 }else{
			    document.getElementById(id).value = json1[disnamearray[0]];
			 }
			 
		}
	}
	function dahui(){
/*	    var datas = window.showModalDialog("<%=request.getContextPath() %>/view/zhengchekekaoxingshiyan_yijian.jsp",'',"dialogWidth=500px;dialogHeight=300px");
		    var json2 = eval('('+datas+')');
	    	if("close" == json2.state){
	    		return false;
	    	}else{
				var reg=new RegExp("<BR>","g"); 
				var remarkVal = remark.remark.replace(reg,"\n"); 
				$("#yijian").val(remarkVal);
	    	}*/
        var actionUrl = '<%=request.getContextPath()%>/weituodan!tuihuiWeituodan.action'; 
        var param = {
                      "flowname":$("#flowname").val(),
                      "flowid":"${flowid}",
                      "stateid":"${stateid}",
                      "steptypeback":$("#steptypeback0").val(),
                      "taskinfoid":"${taskinfoid}",
                      "gongyingshangId":$("#gongyingshangId").val(),
                      "weituodanid":$("#weituodanid").val()
            };
    	$.ajax({  
			        url : actionUrl,  
			        type : "post", 
			        data : param,  
			        dataType : "json",  
			        cache : false,  
			 error : function(textStatus, errorThrown) {  
			        alert("系统ajax交互错误: " + textStatus.value);  
		    },  
		    success : function(data, textStatus) {
		        if(data.ajaxResult=='success'){ 
		        //      window.returnValue = returnValue;     
				      alert("退回成功");
				      W.reload();
					  api.close();
                   }else{
                       alert("处理失败!");
                       W.reload();
                   }
		    }    
			});
    }
    //委外试验
    function weiwaishiyan(){
        if(!confirm("是否确认委外试验 ？")){
		   return false;
		}
    	var actionUrl = '<%=request.getContextPath()%>/weituodan!weiwaishiyan.action'; 
        var param = {
                      "flowname":$("#flowname").val(),
                      "flowid":"${flowid}",
                      "stateid":"${stateid}",
                      "steptype":$("#steptype1").val(),
                      "taskinfoid":"${taskinfoid}",
                      "gongyingshangId":$("#gongyingshangId").val(),
                      "weituodanid":$("#weituodanid").val(),
                      "weituodanshibieno":$("#weituodanshibieno").val(),
                      "feiyongzongji":$("#feiyongzongji").val()
            };
    	$.ajax({  
			        url : actionUrl,  
			        type : "post", 
			        data : param,  
			        dataType : "json",  
			        cache : false,  
			 error : function(textStatus, errorThrown) {  
			        alert("系统ajax交互错误: " + textStatus.value);  
		    },  
		    success : function(data, textStatus) {
		        if(data.result=='success'){ 
		        //      window.returnValue = returnValue;     
				      alert("提交成功");
				      W.reload();
					  api.close();
                   }else{
                       alert("处理失败!");
                       W.reload();
                   }
		    }    
			});
    }
    //生成样品编号
    function shengchengyangpinno(){
    	var actionUrl2 = '<%=request.getContextPath()%>/weituodan!shengchengyangpinNo.action'; 
        var param = {
                      "flowtaskid":${flowtaskid},
                      "weituodanshibieno":$("#weituodanshibieno").val()
            };
    	$.ajax({  
			        url : actionUrl2,  
			        type : "post", 
			        data : param,  
			        dataType : "json",  
			        cache : false,  
			 error : function(textStatus, errorThrown) {  
			        alert("系统ajax交互错误: " + textStatus.value);  
		    },  
		    success : function(data, textStatus) {
		        if(data.result=='success'){ 
		        //      window.returnValue = returnValue;     
				      alert("处理成功");
				      gridSearchSample(${flowtaskid});
                   }else{
                       alert("处理失败!");
                   }
		    }    
			});
    }
    //刷新样品列表
   function gridSearchSample(flowtaskid){
        jQuery("#gridTableSample1").jqGrid('setGridParam',
              {
                  url:'<%=request.getContextPath() %>/autoForms/item!querySampleByTaskId.action?type=0&taskId='+flowtaskid
              }).trigger("reloadGrid", [{page:1}]); 
   }
   //任务分配
   function renwufenpei(){
        var ids = $("#gridTable").jqGrid("getGridParam", "selarrrow") + "";
	    if (!ids) {
	    alert("请先选择记录!");  
	       return false;  
		} 
         var jiancerenid = "";
        var jianceren = "";
         var users = window.showModalDialog("<%=request.getContextPath() %>/resource/choose/chooseAllUser.jsp", window, "dialogWidth:900px;status:no;dialogHeight:500px");
    	if (users != null) {
    		var userIds = [];
            var userNames = [];
            for(var i=0;i<users.length;i++){
                userIds.push(users[i]['userid']);
                userNames.push(users[i]['username']);
            }
			    jianceren=userNames.join();
		        jiancerenid=userIds.join();
		}else{
			return false;
		}
        
      //保存分配人员
		var params = {
		            "jiancerenid":jiancerenid,
		            "jianceren":jianceren,  
			        "ids": ids,
			        "taskInfoId":'${taskinfoid}'
			    };  
		var actionUrl = "<%=request.getContextPath() %>/weituodan!renwufenpei.action";  
		$.ajax({  
			  url : actionUrl,  
		      type : "post", 
		      data : params,  
		      dataType : "json",  
		      cache : false,  
		      error : function(textStatus, errorThrown) {  
		          alert("系统ajax交互错误: " + textStatus.value);  
		      },  
		      success : function(data, textStatus) {
		      	if(data.result=='success'){
		      		alert("任务分配成功！");       
		      		gridSearchSampleAndItem();    
		      	}else{
		      		alert("任务分配失败！");
		      	}
		    }  
		});
   
   }
   //刷新样品/检测项目列表
	   function gridSearchSampleAndItem(){
        jQuery("#gridTable").jqGrid('setGridParam',
              {
                  url:common_basePath+'/autoForms/item!queryItemSampleByTaskId.action?type=0&taskId=${flowtaskid}&stateId=${stateid}&flowtaskinfoid=${taskinfoid}&temp='+Math.round(Math.random()*10000)
              }).trigger("reloadGrid", [{page:1}]); 
        }
     //清空人员
     function deleteUser(){
		 var ids = $("#gridTable").jqGrid("getGridParam", "selarrrow") + "";
         if (!ids) {
		    alert("请先选择记录!");  
		    return false;  
		 } 
		 var params = {  
	        "ids" :  ids,
	        "taskInfoId":'${taskinfoid}'
		 };  
        var actionUrl = common_basePath+"project/item!deleteUser.action"; 
        $.ajax({  
            url : actionUrl,  
            type : "post", 
        	data : params,  
        	dataType : "json",  
        	cache : false,  
    		error : function(textStatus, errorThrown) {  
       	 		alert("系统ajax交互错误: " + textStatus.value);  
    		},  
    		success : function(data, textStatus) {  
                    gridSearchSampleAndItem();
          			alert("清除成功！");  
    		}  
      		});
		 
		 
		} 
     //下载附件
	  function downloafAnnex(flag,annexId){
	     window.location.href="<%=request.getContextPath()%>/codeReviewActionNew!downloafAnnex.action?flag="+flag+"&id="+annexId;
	  }
	  //校验检测项目是否选择了试验员
	  function checkShiyanyuanEmpty(){
	  		var flag = false;
	          $.ajax({  
	              url : '<%=request.getContextPath() %>/codeReviewActionNew!checkShiyanyuanEmpty.action?taskId=${flowtaskid}&taskInfoId=<%=request.getAttribute("taskinfoid").toString()%>',  
	              type : "post", 
	              async: false,//取消异步提交 
	              dataType : "json",  
	              success : function(data, textStatus) {  
	             if(data.ajaxResult=="true")
	               {
	                flag = true;
	               }
	              }  
	         });
	         return flag;
	  }

   </script>
 	<style type="text/css">
 		body{
 			background:#ffffff; background-image:url(images/);
 		}
   		html{
		    overflow-x: hidden;
			overflow-y: hidden;
		}  	
		.formTableNew textarea{border: 1px solid #999;padding: 5px;width: 760px;-moz-border-radius: 3px;border-radius: 3px;margin-bottom: 5px;color: #666;background: url(../images/input_bg.gif) repeat-x top;}
   </style>
  </head>
  
  <body style="overflow-y: scroll;">
<form id="pageFrom" action="" enctype="multipart/form-data" method="post">
        <input type="hidden" name="flowid" id="flowid" value="${flowid}">
     	<input type="hidden" name="stateid" id="stateid" value="${stateid}">
     	<input type="hidden" name="taskinfoid" id="taskinfoid" value="${taskinfoid}">
  		<input type="hidden" id="yijian" name="yijian" value="" />
  		<input type="hidden" id="weituodanid" name="weituodanid" value="${weituodan.ID}" />
  		<input type="hidden" id="flowtaskid" name="flowtaskid" value="${flowtaskid}" />
     	<input type="hidden" id="bianzhirenyuan" name="bianzhirenyuan" value="${weituodan.BIANZHIRENYUAN}" />
     	<input type="hidden" id="pizhunrenyuan" name="pizhunrenyuan" value="${weituodan.PIZHUNRENYUAN}" />
     	<input type="hidden" id="jieshoufangdaibiao" name="jieshoufangdaibiao" value="${weituodan.JIESHOUFANGDAIBIAO}" />
  		<table width="100%" border="0" align="center" cellpadding="5" cellspacing="5" class="formTableNew">
  			<tr>
  			  <tr>
  		    	<td align="right">流程名称：</td>
  		    	<td colspan="3" align="left">
	  			    <input  type="text" readonly id="flowname" maxlength="50" name="flowname" style="border: 1px solid #999;padding: 5px;width: 738px;"  value="${flowname }" />
  			    </td>
  		    </tr>
  			<tr>
  			  <td align="right">任务名称：</td>
  			  <td align="left">
  			    <input  type="text" readonly id="renwuname" maxlength="50" name="renwuname" style="border: 1px solid #999;padding: 5px;width: 250px;"  value="${weituodan.RENWUNAME}" />
  			  	<img src="<%=request.getContextPath() %>/images/xh.png" align="absmiddle"></img>
  			  </td>
  			  <td align="right">检测单位：</td>
  			   <td align="left">
  			    <input  type="text" readonly id="jiancedanwei" name="jiancedanwei" style="border: 1px solid #999;padding: 5px;width: 250px;"  value="${weituodan.JIANCEDANWEI}" />
  			   	<img src="<%=request.getContextPath() %>/images/xh.png" align="absmiddle"></img>
  			   </td>
  			</tr>
  			<tr>
  			  <td align="right">检测地点：</td>
  			  <td align="left">
  			    <input  type="text" readonly id="jiancedidian" name="jiancedidian" style="border: 1px solid #999;padding: 5px;width: 250px;"  value="${weituodan.JIANCEDIDIAN}" />
  			    <img src="<%=request.getContextPath() %>/images/xh.png" align="absmiddle"></img>
  			  </td>
  			  <td align="right">申请单位：</td>
  			   <td align="left">
  			    <input  type="text" readonly id="shenqingdanwei" maxlength="50" name="shenqingdanwei" style="border: 1px solid #999;padding: 5px;width: 250px;"  value="${weituodan.SHENQINGDANWEI}" />
  			    <img src="<%=request.getContextPath() %>/images/xh.png" align="absmiddle"></img>
  			   </td>
  			</tr>
  			<tr>
  			  <td align="right">联系人：</td>
  			  <td align="left">
  			  	 <input  type="text"  id="lianxiren" readonly name="lianxiren" style="border: 1px solid #999;padding: 5px;width: 250px;"  value="${weituodan.LIANXIREN}" />
  			     <img src="<%=request.getContextPath() %>/images/xh.png" align="absmiddle"></img>
  			  </td>
  			  <td align="right">申请日期：</td>
  			  <td align="left">
  			    <input  type="text"  id="shenqingdate" readonly maxlength="50"  name="shenqingdate" style="border: 1px solid #999;padding: 5px;width: 250px;"  value="${weituodan.SHENQINGDATE}" />
  			    <img src="<%=request.getContextPath() %>/images/xh.png" align="absmiddle"></img>
  			  </td>
  			</tr>
  			<tr>
  			  <td align="right">联系电话：</td>
  			  <td align="left">
  			    <input  type="text" readonly id="lianxidianhua" maxlength="50"  name="lianxidianhua" style="border: 1px solid #999;padding: 5px;width: 250px;"  value="${weituodan.LIANXIDIANHUA}" />
  			  </td>
  			  <td align="right">地址：</td>
  			  <td align="left">
  			     <input  type="text" readonly id="dizhi" maxlength="50" name="dizhi" style="border: 1px solid #999;padding: 5px;width: 250px;"  value="${weituodan.DIZHI}" />
  			     <img src="<%=request.getContextPath() %>/images/xh.png" align="absmiddle"></img>
  			  </td>
  			</tr>
  			<tr>
  			  <td align="right">邮编：</td>
  			  <td align="left">
  			    <input  type="text" readonly id="youbian" maxlength="50"  name="youbian" style="border: 1px solid #999;padding: 5px;width: 250px;"  value="${weituodan.YOUBIAN}" />
  			  </td>
  			  <td align="right">检测目的：</td>
  			  <td align="left">
  			     <input  type="text" readonly id="jiancemudi" maxlength="50" name="jiancemudi" style="border: 1px solid #999;padding: 5px;width: 250px;"  value="${weituodan.JIANCEMUDI}" />
  			     <img src="<%=request.getContextPath() %>/images/xh.png" align="absmiddle"></img>
  			  </td>
  			</tr>
  			<tr>
  			  <td align="right">双方约定日期：</td>
  			  <td align="left">
  			    <input  type="text" readonly id="shuangfangyuedingdate" maxlength="50"  name="shuangfangyuedingdate" onClick="WdatePicker()" style="border: 1px solid #999;padding: 5px;width: 250px;"  value="${weituodan.SHUANGFANGYUEDINGDATE}" />
  			    <img src="<%=request.getContextPath() %>/images/xh.png" align="absmiddle"></img>
  			  </td>
  			  <td align="right">费用总计：</td>
  			  <td align="left">
  			    <input  type="text" readonly id="feiyongzongji" maxlength="50" name="feiyongzongji" style="border: 1px solid #999;padding: 5px;width: 250px;"  value="${weituodan.FEIYONGZONGJI}" />
  			  </td>
  			</tr>
  			<tr>
  				<td align="right">委托单识别号：</td>
  			  <td align="left">
  			    <input  type="text" readonly id="weituodanshibieno" maxlength="50" name="weituodanshibieno" style="border: 1px solid #999;padding: 5px;width: 250px;"  value="${weituodan.WEITUODANSHIBIENO}" />
  			  </td>
  			  <td align="right">&nbsp;</td>
  			  <td align="left">&nbsp;</td>
  			</tr>
 			<tr>
		    <td align="right"  >项目特殊说明：</td>
		    <td >
		    	<div class="div">
					<textarea rows="5" cols="100" id="xiangmuteshushuoming" name="xiangmuteshushuoming" onkeydown="countlen1(this);" style="width: 250px;">${weituodan.XIANGMUTESHUSHUOMING}</textarea>
				</div>	
		    </td>
		    <td align="right"  >样品特殊说明：</td>
		    <td >
		    	<div class="div">
					<textarea rows="5" cols="100" id="yangpinteshushuoming" name="yangpinteshushuoming" onkeydown="countlen1(this);" style="width: 250px;">${weituodan.YANGPINTESHUSHUOMING}</textarea>
				</div>	
		    </td>
		  </tr>
		  <tr>
		  	  <td align="right">项目附件：</td>
  			  <td align="left">
  			    <jsp:include page="../fileupload/attachment.jsp?id=${weituodan.ID }&column=xiangmu&show=y" ></jsp:include>
  			  </td>
  			  <td align="right">样品附件：</td>
  			  <td align="left">
  			    <jsp:include page="../fileupload/attachment.jsp?id=${weituodan.ID }&column=yangpin&show=y" ></jsp:include>
  			  </td>
		  </tr>
		  <!--tr>
		  	<td align="right">审批意见：</td>
		  	<td colspan='3'><textarea id=\"shenpiyijian\" name=\"shenpiyijian\"    class='ftextarea' readonly=\"readonly\" rospan=\"8\" colspan=\"80\" style='border: 1px solid #999;padding: 5px;width:740px;height:60px'>${spyj}</textarea></td>
		  </tr-->
		  <tr>
		    <td colspan='4' align='center'>
		      <div id='tt1' class='easyui-tabs' style='width:750px;height：600px'>
		        <div title='任务信息' style='padding:10px'>
		          <input id='saveBtn1' type='button'  value='分配人员' onclick="renwufenpei()" class="form_bt_orange"/>
		          &nbsp;&nbsp;<input type='button' value='清空人员' onclick="deleteUser()" class='form_bt_orange' />
                  <table id="gridTable"></table>
	              <div id="gridPager"></div>
				 </div>
			</td></tr>
			<%if("proc1".equals(request.getAttribute("stateid").toString())){ %>
			<tr><td align="right">下一步骤：</td>
			    <td colspan="3">${steptcontent}</td>
			</tr>
			<%}else{ %>
			 <tr style="display: none"><td>${steptcontent}${steptcontentback }</td></tr>
			<%} %>
		</table>
		<table width="100%" border="0" align="center" class="formTableNew">
		  <tr>
			<td align="center">
			    <input id="saveBtn2" onclick="" type="button" value="问题反馈" class="form_bt_orange" style="width:120px"/>
				<input id="saveBtn" type="button" value="保 存" class="form_bt_orange" />
				<input id="submitBtn" type="button" value="提 交" class="form_bt_orange" />
		    	<!--input type="button" id="backBtn" onclick="dahui()" value="退 回" class="form_bt_orange" /-->
		    	<input type="button" id="closeBtn" value="取 消" class="form_bt_grey" />
		    </td>
		  </tr>
		  <tr>
		  	<td>&nbsp;&nbsp; </td>
		  </tr>
		</table>
	<!--表单结束-->
	</form>
  </body>
</html>
